package com.click369.mianshiqingbao.pojo;

import java.util.ArrayList;
import java.util.List;
/**
 * 题目答案信息的查询条件封装类
 */
public class AnswerBeanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AnswerBeanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAnswerIdIsNull() {
            addCriterion("answer_id is null");
            return (Criteria) this;
        }

        public Criteria andAnswerIdIsNotNull() {
            addCriterion("answer_id is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerIdEqualTo(Long value) {
            addCriterion("answer_id =", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdNotEqualTo(Long value) {
            addCriterion("answer_id <>", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdGreaterThan(Long value) {
            addCriterion("answer_id >", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("answer_id >=", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdLessThan(Long value) {
            addCriterion("answer_id <", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdLessThanOrEqualTo(Long value) {
            addCriterion("answer_id <=", value, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdIn(List<Long> values) {
            addCriterion("answer_id in", values, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdNotIn(List<Long> values) {
            addCriterion("answer_id not in", values, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdBetween(Long value1, Long value2) {
            addCriterion("answer_id between", value1, value2, "answerId");
            return (Criteria) this;
        }

        public Criteria andAnswerIdNotBetween(Long value1, Long value2) {
            addCriterion("answer_id not between", value1, value2, "answerId");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNull() {
            addCriterion("topic_id is null");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNotNull() {
            addCriterion("topic_id is not null");
            return (Criteria) this;
        }

        public Criteria andTopicIdEqualTo(Long value) {
            addCriterion("topic_id =", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotEqualTo(Long value) {
            addCriterion("topic_id <>", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThan(Long value) {
            addCriterion("topic_id >", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("topic_id >=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThan(Long value) {
            addCriterion("topic_id <", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThanOrEqualTo(Long value) {
            addCriterion("topic_id <=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdIn(List<Long> values) {
            addCriterion("topic_id in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotIn(List<Long> values) {
            addCriterion("topic_id not in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdBetween(Long value1, Long value2) {
            addCriterion("topic_id between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotBetween(Long value1, Long value2) {
            addCriterion("topic_id not between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIsNull() {
            addCriterion("answer_content is null");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIsNotNull() {
            addCriterion("answer_content is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerContentEqualTo(String value) {
            addCriterion("answer_content =", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotEqualTo(String value) {
            addCriterion("answer_content <>", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentGreaterThan(String value) {
            addCriterion("answer_content >", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentGreaterThanOrEqualTo(String value) {
            addCriterion("answer_content >=", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLessThan(String value) {
            addCriterion("answer_content <", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLessThanOrEqualTo(String value) {
            addCriterion("answer_content <=", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLike(String value) {
            addCriterion("answer_content like", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotLike(String value) {
            addCriterion("answer_content not like", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIn(List<String> values) {
            addCriterion("answer_content in", values, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotIn(List<String> values) {
            addCriterion("answer_content not in", values, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentBetween(String value1, String value2) {
            addCriterion("answer_content between", value1, value2, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotBetween(String value1, String value2) {
            addCriterion("answer_content not between", value1, value2, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterIsNull() {
            addCriterion("answer_character is null");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterIsNotNull() {
            addCriterion("answer_character is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterEqualTo(String value) {
            addCriterion("answer_character =", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterNotEqualTo(String value) {
            addCriterion("answer_character <>", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterGreaterThan(String value) {
            addCriterion("answer_character >", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterGreaterThanOrEqualTo(String value) {
            addCriterion("answer_character >=", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterLessThan(String value) {
            addCriterion("answer_character <", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterLessThanOrEqualTo(String value) {
            addCriterion("answer_character <=", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterLike(String value) {
            addCriterion("answer_character like", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterNotLike(String value) {
            addCriterion("answer_character not like", value, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterIn(List<String> values) {
            addCriterion("answer_character in", values, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterNotIn(List<String> values) {
            addCriterion("answer_character not in", values, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterBetween(String value1, String value2) {
            addCriterion("answer_character between", value1, value2, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerCharacterNotBetween(String value1, String value2) {
            addCriterion("answer_character not between", value1, value2, "answerCharacter");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoIsNull() {
            addCriterion("answer_video is null");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoIsNotNull() {
            addCriterion("answer_video is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoEqualTo(String value) {
            addCriterion("answer_video =", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoNotEqualTo(String value) {
            addCriterion("answer_video <>", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoGreaterThan(String value) {
            addCriterion("answer_video >", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoGreaterThanOrEqualTo(String value) {
            addCriterion("answer_video >=", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoLessThan(String value) {
            addCriterion("answer_video <", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoLessThanOrEqualTo(String value) {
            addCriterion("answer_video <=", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoLike(String value) {
            addCriterion("answer_video like", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoNotLike(String value) {
            addCriterion("answer_video not like", value, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoIn(List<String> values) {
            addCriterion("answer_video in", values, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoNotIn(List<String> values) {
            addCriterion("answer_video not in", values, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoBetween(String value1, String value2) {
            addCriterion("answer_video between", value1, value2, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerVideoNotBetween(String value1, String value2) {
            addCriterion("answer_video not between", value1, value2, "answerVideo");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeIsNull() {
            addCriterion("answer_relative is null");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeIsNotNull() {
            addCriterion("answer_relative is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeEqualTo(String value) {
            addCriterion("answer_relative =", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeNotEqualTo(String value) {
            addCriterion("answer_relative <>", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeGreaterThan(String value) {
            addCriterion("answer_relative >", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeGreaterThanOrEqualTo(String value) {
            addCriterion("answer_relative >=", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeLessThan(String value) {
            addCriterion("answer_relative <", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeLessThanOrEqualTo(String value) {
            addCriterion("answer_relative <=", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeLike(String value) {
            addCriterion("answer_relative like", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeNotLike(String value) {
            addCriterion("answer_relative not like", value, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeIn(List<String> values) {
            addCriterion("answer_relative in", values, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeNotIn(List<String> values) {
            addCriterion("answer_relative not in", values, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeBetween(String value1, String value2) {
            addCriterion("answer_relative between", value1, value2, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerRelativeNotBetween(String value1, String value2) {
            addCriterion("answer_relative not between", value1, value2, "answerRelative");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashIsNull() {
            addCriterion("answer_is_cash is null");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashIsNotNull() {
            addCriterion("answer_is_cash is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashEqualTo(Boolean value) {
            addCriterion("answer_is_cash =", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashNotEqualTo(Boolean value) {
            addCriterion("answer_is_cash <>", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashGreaterThan(Boolean value) {
            addCriterion("answer_is_cash >", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashGreaterThanOrEqualTo(Boolean value) {
            addCriterion("answer_is_cash >=", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashLessThan(Boolean value) {
            addCriterion("answer_is_cash <", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashLessThanOrEqualTo(Boolean value) {
            addCriterion("answer_is_cash <=", value, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashIn(List<Boolean> values) {
            addCriterion("answer_is_cash in", values, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashNotIn(List<Boolean> values) {
            addCriterion("answer_is_cash not in", values, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashBetween(Boolean value1, Boolean value2) {
            addCriterion("answer_is_cash between", value1, value2, "answerIsCash");
            return (Criteria) this;
        }

        public Criteria andAnswerIsCashNotBetween(Boolean value1, Boolean value2) {
            addCriterion("answer_is_cash not between", value1, value2, "answerIsCash");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}